$(function(){
	medicalOrderDetail();
	
	function medicalOrderDetail(){
		orderid= utilModule.getQueryString("orderid");
		console.log(orderid);
		var param = {"id":orderid};
		function callBackSlider(data){
			console.log(data);
			var kuaidi = data.expressExt.split(",");
			$(".send-commodity p").html(kuaidi[0]+"："+data.expressNumber+"</br>官方电话：<span class='color_blue'>"+kuaidi[2]+"</span>");
			var html='<img src="'+data.prescriptionDetailList[0].thumbnail+'"/><div>'+data.prescriptionDetailList.length+'件商品</div>';
			$(".send-commodity .commodity").append(html);
			
			$(".defaultAddress span").text("[收货地址]"+data.address);
			
			$(".expressList").append("<iframe width='99%' height='400px' src='https://m.kuaidi100.com/index_all.html?type="+kuaidi[1]+"&postid="+data.expressNumber+"'></iframe>")
			//查快递
//			var paramkuai = {"type":kuaidi[1],"postid":data.expressNumber};
//			function callBackgetkuai100(json){
//				console.log(json);
//			}
//			onlineContinuationModule.getkuai100(paramkuai,callBackgetkuai100);
		}
		onlineContinuationModule.getOneMallOrder(param,callBackSlider);
		
		

	}
});
